//
//  JLXXMineVideosDataManager.m
//  JLXXListController
//
//  Created by apple on 17/5/17.
//  Copyright © 2017年 cnsuer. All rights reserved.
//

#import "JLXXMineVideosDataManager.h"
#import "JLXXMineVideo.h"

@implementation JLXXMineVideosDataManager

-(void)parseServerData:(NSDictionary *)responseObject{
    
    NSMutableArray *mineProductions = [NSMutableArray array];
    
    for (NSDictionary *dic in responseObject[@"data"]) {
        for (NSDictionary *photoUrlDic in dic[@"smeta"]) {
            JLXXMineVideo *mineVideo = [[JLXXMineVideo alloc] init];
            mineVideo.upload_date = dic[@"upload_date"];
            mineVideo.type = dic[@"type"];
            mineVideo.ID = dic[@"id"];
            mineVideo.r_url = photoUrlDic[@"r_url"];
            mineVideo.thumb = photoUrlDic[@"thumb"];
            [mineProductions addObject:mineVideo];
        }
    }
    
    [self.responseObject addObjectsFromArray:mineProductions];
}

@end
